//
//  MyCell.m
//  UIA段项目 墨家天气
//
//  Created by dllo on 15/9/9.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "MyCell.h"

@implementation MyCell

- (void)awakeFromNib {
    // Initialization code
}
-(void)dealloc
{
    
    [_imamgeV release];
    [_titleStr release];
    [super dealloc];
    
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.imamgeV = [[UIImageView alloc]init];
        [self.contentView addSubview:_imamgeV];
        [_imamgeV release];
        
        self.titleStr = [[UILabel alloc]init];
        self.titleStr.textColor = [UIColor whiteColor];
        
        self.titleStr.font = [UIFont boldSystemFontOfSize:15];
        [self.contentView addSubview:_titleStr];
        [_titleStr release];
        
        
        
        
    }
    return self;
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    
    self.imamgeV.frame = CGRectMake(15 * OffWidth, self.contentView.frame.size.height - 25 * OffHeight, 20 * OffWidth, 20 * OffHeight);
    self.titleStr.frame = CGRectMake(45 * OffWidth, self.contentView.frame.size.height - 30 * OffHeight, self.contentView.frame.size.width,30 * OffHeight);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
